package be.idemditolommel.window;

import be.idemditolommel.component.MenuTabSheet;
import be.idemditolommel.component.ToolBarAccordion;
import be.idemditolommel.controller.MenuController;
import be.idemditolommel.controller.ToolbarController;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Window;

public class HomeWindow extends Window {
    
    MenuController menuController = null;
    ToolbarController toolbarController = null;
    
    public HomeWindow() {
        menuController = new MenuController();
        toolbarController = new ToolbarController();
        populateWindow();
    }

    private void populateWindow() {
        HorizontalLayout layout = new HorizontalLayout();
        layout.addComponent(new ToolBarAccordion(toolbarController.getAllTabs()));
        layout.addComponent(new MenuTabSheet(menuController.getAllTabs()));
        this.addComponent(layout);
    }
}
